package com.ferry.protocol.payload;

import com.ferry.common.util.sequence.LongSequence;

/**
 * Created by daiyong
 * 请求消息负载
 */
public class RequestPayload extends PayloadHolder {

	private static final LongSequence sequence = new LongSequence();

	private final long invokeId;

	private transient long timestamp;

	public RequestPayload() {
		this(sequence.next());
	}

	public RequestPayload(long invokeId) {
		this.invokeId = invokeId;
	}

	public long invokeId() {
		return invokeId;
	}

	public long timestamp() {
		return timestamp;
	}

	public void timestamp(long timestamp) {
		this.timestamp = timestamp;
	}

}
